import Vue from 'vue'
import App from './App'
import store from './store'
import setting from 'setting.js'

import {
  getPlatform,
  navTo,
  showToast
} from './utils/app'

Vue.config.productionTip = false

App.mpType = 'app'

// 挂载全局函数
Vue.prototype.$toast = showToast
Vue.prototype.$navTo = navTo
Vue.prototype.$setting = setting;

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

const app = new Vue({
    ...App,
	store
})
app.$mount()
